package com.cty.pojo;

import java.util.List;

/**
 * @Auther: cty
 * @Date: 2020/3/3 11:22
 * @Description:  分页信息实体类
 * @version: 1.0
 */
public class PageInfo {
    // 要显示第几页
    private int pageNum;

    // 每页显示的记录条数
    private int pageSize;

    // 一共有多少页
    private int pageTotal;

    // 当前页的内容
    private List<?> pageList;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public List<?> getPageList() {
        return pageList;
    }

    public void setPageList(List<?> pageList) {
        this.pageList = pageList;
    }

    @Override
    public String toString() {
        return "PageInfo{" +
                "pageNum=" + pageNum +
                ", pageSize=" + pageSize +
                ", pageTotal=" + pageTotal +
                ", pageList=" + pageList +
                '}';
    }
}
